function XULassociatedNameValueGrid(parentDOMObject, columnArray){
	this.setup(parentDOMObject, columnArray);
}

XULassociatedNameValueGrid.prototype.setup=function(parentDOMObject, columnArray){
	this.elementGrid=document.createElement("grid");
		this.elementCols=document.createElement("columns");
			this.elementCols.appendChild(this.elementColName=document.createElement("column"));
			this.elementCols.appendChild(this.elementColVal=document.createElement("column"));
		this.elementRows=document.createElement("rows");
			this.elementRowList=new Array();
			this.elementLabelList=new Array();
			this.elementInputList=new Array();
			for(var i=0;i<columnArray.length;i++){
				this.elementRowList[i]=document.createElement("row");
					this.elementRowList[i].appendChild(this.elementLabelList[i]=document.createElement("label"));
						this.elementLabelList[i].appendChild(document.createTextNode(columnArray[i]));
					this.elementRowList[i].appendChild(this.elementInputList[i]=document.createElement("textbox"));
				this.elementRows.appendChild(this.elementRowList[i]);
			}
		this.elementGrid.appendChild(this.elementCols);
		this.elementGrid.appendChild(this.elementRows);
		
	
	parentDOMObject.appendChild(this.elementGrid);
}
